﻿using System;
using System.Runtime.InteropServices;
using Microsoft.MediaPlayer.Interop;

namespace BMproductions.Media.MediaPlayer.WMPPlus {
	[ComVisible(true)]
	[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
	[Guid("69734B0D-FF33-4C49-AC7F-ADFA440A3463")]
	public interface IWMPPlusHook {
		void Initialize3(IntPtr module, IntPtr instance, int majorVersion, int minorVersion, ImportLibrary lib);
		void Uninitialize();

		void CreatePlugin([In]ref Guid clsid, IntPtr plugin, IWMPPluginUI intf);
		void SetupPlugin([In]ref Guid clsid, [MarshalAs(UnmanagedType.Bool)] bool shutdown);
		int PlaceSubMenu(IntPtr submenu, IntPtr hMenu);
		void InvokeSubMenu(IntPtr menu, IntPtr hMenu);
		void InvokeMenuItem(IntPtr item, IntPtr hWnd);
	}
}
